#include <bits/stdc++.h>
#define int long long

using namespace std;

const int N = 2e5 + 5;

int n;
int a[N], vis[N];

signed main(void) {
    freopen("duel.in", "r", stdin);
    freopen("duel.out", "w", stdout);
    cin >> n;
    for (int i = 1; i <= n; i ++ ) {
        cin >> a[i];
    }
    sort(a + 1, a + n + 1);
    int j = -1;
    for (int i = 1; i <= n; i ++ ) if (a[i] != a[i + 1]) {
        j = i + 1;
        break;
    }
    if (j == -1) {
        cout << n << '\n';
    } else {
        int ans = n;
        for (int i = 1; i <= n; i ++ ) {
            while (j < n && a[j] <= a[i]) j ++ ;
            if (a[j] > a[i] && vis[j] == 0) {
                ans -- ;
                vis[j] = 1;
            }
            if (j < n) j ++ ;
        }
        cout << ans << '\n';
    }
    return 0;
}